import java.util.*;
import java.io.*;

public class Main {
    public static void main(String args[]) {
        String biNum = "1 0010 1101 0110 1000 0111"; //1234567
        try {
            System.out.println(ExString.bin2Dec(biNum));
        }
        catch (BinaryFormatException ex) {
            ex.printStackTrace();
        }
    }
}
